package com.highspeed.bdk.gateway.socket.analyze;

import com.highspeed.bdk.gateway.Util;
import com.highspeed.bdk.gateway.socket.analyze.base.Resolver;
import com.highspeed.bdk.gateway.socket.analyze.message.gui.resolver.*;
import com.highspeed.bdk.gateway.socket.analyze.message.preset_deploy.resolver.RioLinkAppDisplayDeployResolver;
import com.highspeed.bdk.gateway.socket.analyze.message.preset_deploy.resolver.RioLinkAppDisplayFuncResolver;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;

public class App {
    public static void main(String[] args) {
        try {
            File file = new File("查询初始化后网络状态_操作号2_参数[].dat");
            byte[] response = Util.getContent(file.getPath());
            Resolver resolver = new InitFbDataResolver0x02();
            Map<String, Object> objects = resolver.resolve(response);
            System.out.println(objects.get("offset"));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
